# name : flexsurvreg
# key: flexsurvreg
# contributor: Shuguang Sun
# --
fit <- flexsurv::flexsurvreg(
  formula = Surv(AVAL, 1-CNSR) ~ ${1:covariates}${2:, anc = list(shape = ~ sex + treat),}
  data = ${3:data},
  dist=\"${4:$$(yas-choose-value
                '("gengamma" "gengamma.orig"
                  "genf" "genf.orig"
                  "weibull" "gamma"
                  "exp" "exponential"
                  "llogis"
                  "lnorm" "lognormal"
                  "gompertz"))}\"
)